﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using com.guojin.core.io.message;
using com.guojin.core.io;
using System;

namespace com.guojin.mj.net.message.login{
public class SendMoney : Message  {
        public static int TYPE = 7;
        public static int ID = 81;
        private int _id;
        private int gold;
        public int Id
        {
            get
            {
                return _id;
            }
            set
            {
                _id = value;
            }
        }

        public int Gold
        {
            get
            {
                return gold;
            }
            set
            {
                gold = value;
            }
        }
        public static SendMoney create(int id,int _gold) {
            SendMoney sd = new SendMoney();
            sd._id = id;
            sd.gold = _gold;
            return sd;
        }
        public void decode(core.io.Input _in)
        {
            
        }

        public void encode(Output _out)
        {
            _out.writeInt(Id);
            _out.writeInt(gold);
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "id" + Id+"gold"+gold;
        }
}
}
